<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>支付宝</title>
    <link rel="stylesheet" href="thmel.css">
    <script src="met.js"></script>
</head>
    <body class="body">
    <div class="box">
        <div class="head">账密登录</div>
        <div class="input-box">
            <label>账号</label>
            <input class="text1" id="user"type="text" placeholder="邮箱地址/手机号">
        </div>
        <div class="input-box">
            <label>密码</label>
            <input class="text1" id="pwd" type="password" >
        </div>
        <div class="btn-box">
            <a href="#">忘记密码?</a>
        </div>
       
        <div class="wen-box" id="">
            <button id="bit"onclick="handlenClick()">登录</button>
        </div>
        <script>
            bit.addEventListener("click",function () {
                var user = document.getElementById("user");
                var pwd = document.getElementById("pwd");
                if (user.value ==="admin" && pwd.value ==="123") {
                    alert("登录成功");
                    window.location.href="http://47.116.207.219/homePage";
                } else {
                    pwd.value="";
                    alert("账号或密码错误")
                    }
        })
        </script>
    </div>
    </body>                                                                                                                                                                                                            
</html>